package com.lwc.cfdns.pojo.vo.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.lwc.cfdns.pojo.entity.SystemAdminDept;
import com.lwc.cfdns.pojo.entity.SystemAdminStation;
import com.lwc.cfdns.pojo.entity.SystemRole;
import lombok.Data;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
 * 管理员用户
 *
 * @author luwc
 * @title AdminVO
 * @description
 * @time 2023/5/24 10:46:40
 * @version: 1.0
 */
@Data
public class AdminVO {
    private Long id;
    private String userName;
    private String nickName;
    private String phonenumber;
    private String email;
    private String avatar;
    private String remark;
    private String status;
    private String sex;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createdAt;

    // 角色 一对多
    private List<SystemRole> roleList = new ArrayList<>();
    // 部门 一对多
    private List<SystemAdminDept> deptList = new ArrayList<>();
    // 岗位 一对多
    private List<SystemAdminStation> stationList = new ArrayList<>();
}
